package com.umeox.watch.moto.dataservice.db.model;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = ServerConfig.TABLE_NAME)
public class ServerConfig {
@Ignore
    public static final String TABLE_NAME = "server_config";
    @NonNull
   @PrimaryKey
    private String deviceId;

    private int sslSupport;

    private String sslServerAddress;

    private int sslServerPort = 443;

    private String serverAddress;

    private int serverPort = 80;
    /*
     * 文件服务器地址
     * */

    private String fileServerAddress;
    /*
     * 文件服务器地址
     * */

    private int fileServerPort = 80;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public int getSslSupport() {
        return sslSupport;
    }

    public void setSslSupport(int sslSupport) {
        this.sslSupport = sslSupport;
    }

    public String getSslServerAddress() {
        return sslServerAddress;
    }

    public void setSslServerAddress(String sslServerAddress) {
        this.sslServerAddress = sslServerAddress;
    }

    public int getSslServerPort() {
        return sslServerPort;
    }

    public void setSslServerPort(int sslServerPort) {
        this.sslServerPort = sslServerPort;
    }

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }

    public String getFileServerAddress() {
        return fileServerAddress;
    }

    public void setFileServerAddress(String fileServerAddress) {
        this.fileServerAddress = fileServerAddress;
    }

    public int getFileServerPort() {
        return fileServerPort;
    }

    public void setFileServerPort(int fileServerPort) {
        this.fileServerPort = fileServerPort;
    }

    @Override
    public String toString() {
        return "{" +
                "sslSupport=" + sslSupport +
                ", sslServerAddress='" + sslServerAddress + '\'' +
                ", sslServerPort=" + sslServerPort +
                ", serverAddress='" + serverAddress + '\'' +
                ", serverPort=" + serverPort +
                ", fileServerAddress='" + fileServerAddress + '\'' +
                ", fileServerPort=" + fileServerPort +
                '}';
    }
}
